<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
		
		function Person(name,chinese,math){
			this.name=name;
			this.chinese=chinese;
			this.math=math;
		}
		
		Person.prototype.getName=function()
		{
			return this.name;
		}
		Person.prototype.getChinese=function()
		{
			return this.chinese;
		}
 			Person.prototype.getMath=function()
		{
			return this.math;
		}
		
		
		function Student(name,chinese,math,age){	
			Person.call(this,name,chinese,math);
			this.age=age;
		}
		
		Student.prototype=new Person();
		Student.prototype.getAge=function(){
			return this.age;
		}
		var s=new Student("张三","98","80","25");
		document.write("姓名："+s.getName()+
		"<br /><br />语文:"+s.getChinese()+
		"<br /><br />数学:"+s.getMath()+"<br /><br />年龄:"+s.getAge());
		</script>
	</head>
	<body>
	</body>
</html>
